﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IBS
{
    public class Suppler : Interfaces.ISupplier
    {
        public int SUPIBSCODE { get; set; }
        public Guid GUID_RECORD { get; set; }
        public string SUPNAME { get; set; }

        public int ID_Record { get { return this.SUPIBSCODE; } set { this.SUPIBSCODE = value; } }
        public Guid GUID_Record { get { return this.GUID_RECORD; } set { this.GUID_RECORD = value; } }
        public string SupplierName { get { return this.SUPNAME; } set { this.SUPNAME = value; } }
    }

    public class Item : Interfaces.IItem
    {
        public Int64 ITEMCODE { get; set; }
        public Guid GUID_RECORD { get; set; }
        public string LONGNAME { get; set; }

        public Int64 ID_Record { get { return this.ITEMCODE; } set { this.ITEMCODE = value; } }
        public Guid GUID_Record { get { return this.GUID_RECORD; } set { this.GUID_RECORD = value; } }
        public string ItemName { get { return this.LONGNAME; } set { this.LONGNAME = value; } }
    }

    public class IbsItem : Interfaces.IItem
    {
        public Guid GUID_RECORD { get; set; }
        public Int64 ITEMCODE { get; set; }
        public int SUPIBSCODE { get; set; }
        public int ITEMSTATCODE { get; set; }
        public string LONGNAME { get; set; }
        public string SHORTNAME { get; set; }
        public DateTime CHDATE { get; set; }

        public Int64 ID_Record { get { return this.ITEMCODE; } set { this.ITEMCODE = value; } }
        public Guid GUID_Record { get { return this.GUID_RECORD; } set { this.GUID_RECORD = value; } }
        public string ItemName { get { return this.LONGNAME; } set { this.LONGNAME = value; } }
    }


    public class IbsSite : Interfaces.ILocation
    {
        public Guid GUID_RECORD { get; set; }
        public int SITEIBSCODE { get; set; }        
        public string SITENAME	{ get; set; }
        public string RCCODE { get; set; }
        public string ADDRESS { get; set; }
        public DateTime DATEUPDATE { get; set; }

        public int ID_Record { get { return this.SITEIBSCODE; } set { this.SITEIBSCODE = value; } }
        public Guid GUID_Record { get { return this.GUID_RECORD; } set { this.GUID_RECORD = value; } }
        public string LocationName { get { return this.RCCODE + " " + this.SITENAME; } set { this.RCCODE = value; } }
        public string Address { get { return this.ADDRESS; } set { this.ADDRESS = value; } }
        
    }


    public class IbsSupplier : Interfaces.ISupplier
    {
        public Guid GUID_RECORD { get; set; }
        public int SUPIBSCODE { get; set; }
        public string SUPNAME { get; set; }
        public DateTime CHDATE { get; set; }

        public int ID_Record { get { return this.SUPIBSCODE; } set { this.SUPIBSCODE = value; } }
        public Guid GUID_Record { get { return this.GUID_RECORD; } set { this.GUID_RECORD = value; } }
        public string SupplierName { get { return this.SUPNAME; } set { this.SUPNAME = value; } }

    }


}
